/**
 * AlbumDto.java
 * com.sftj.web.fansorby.dto
 * Copyright (c) 2018, 北京科技有限公司版权所有.
*/

package com.sftz.modules.minapp.myExam.dto;

import java.util.Date;

import lombok.Data;

import com.sftz.framework.util.HhmmssUtil;
import com.uxuexi.core.common.util.Util;

/**
 * 
 * @author   赵硕
 * @Date	 2018年8月30日
 */
@Data
public class MyPaperDto {

	private Integer id;

	private Integer answerId;

	private String courseName;

	private String title;

	private Integer questionCnt;

	private Integer elapsedTime;

	private Integer alreadyAnsTime = 0;

	private Integer answerTime;

	private Integer passScore;

	private String score;

	private Integer answerNumber;

	private Integer rule;

	private String acScore;

	private String ratingScore;//试卷占比分值

	private String acRatingScore;//实际得分试卷占比分值

	private String approver;

	private Date finishTime;

	private Date endtime;

	private Integer status;

	private Integer courseId;

	private String timeHms;

	private Date postDate;//延期日期

	public String getTimeHms() {
		if (!Util.isEmpty(elapsedTime)) {
			int i = (new Double(elapsedTime)).intValue();
			timeHms = HhmmssUtil.secToTime(i);
			return timeHms;
		} else {
			return "";
		}
	}
}
